﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Linq.Mapping;

namespace StudentMgmt.Model
{
    [Serializable]
    [Table (Name="Change")]
   public  class ChangeInfo
    {
        public ChangeInfo() { }

        public ChangeInfo(string Change_Id, string StuNo, string Change_Code, DateTime Creadte_Date, string Change_Descriptions)
        {
            this.Change_Id = Change_Id;
            this.StuNo = StuNo;
            this.Change_Code = Change_Code;
            this.Create_Date = Creadte_Date;
            this.Change_Descriptions = Change_Descriptions;
        }

       [Column(Name = "Change_Id", IsPrimaryKey = true, DbType = "char(36)")]
        public string  Change_Id { get; set;}

        [Column(Name="StuNo",DbType="char(6)")]
        public string StuNo { get; set; }

        [Column(Name = "Change_Code", DbType = "char(5)")]
        public string Change_Code { get;set; }

        [Column(Name = "Create_Date", DbType = "datetime")]
        public DateTime Create_Date { get; set;}

        [Column(Name = "Change_Descriptions", DbType = "varchar(4000)")]
        public string Change_Descriptions { set; get; }
    }
}